package org.jackysoft.google.collection;

import org.jackysoft.entity.Role;

public class RoleZtreeFunction extends AbstractZTreeFunction<Role, ZTreeNode> {

	@Override
	public ZTreeNode apply(Role from) {
		ZTreeNode zn = new ZTreeNode();
		zn.setId(from.getId()+"");
		zn.setName(from.getName());
		zn.setIsParent("true");		
		zn.setChecked(false);
		zn.setNocheck(true);
		zn.setSort(from.getSort());
		return zn;
	}

}
